<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<%@include file="../common/jscss.jsp"%>
<%@include file="../common/selfCss.jsp"%>
<script type="text/javascript">
$(document).ready(function() {
	$("#rebateForm").validate({
		errorClass:"validate_error",
		rules : {
			guoguojieCommissionRate : {required : true,number},
			guoguojieCommissionMin : {required : true,number}
		},
		messages : {
			guoguojieCommissionRate : {required : "请填写返利比率",number : "必须填写数字"},
			guoguojieCommissionMin : {required : "请填写佣金最小值",number : "必须填写数字"}
		},
		submitHandler:function(form) {
			$(form).ajaxSubmit(function(data){
				if(data=="success"){
					alert("修改成功！");
				}else{
					alert("亲！系统有点抽筋，请稍候再试！");
				}
			});
		}
	});
});
</script>
<form action="/misc/top/rebate.htm" method="post" id="rebateForm">
	<table width="100%" class="def_t">
		<tr>
			<td>
			当前返利比率：<input type="text" value="${guoguojieCommissionRate}" readonly style="color:red" />
			</td>
			<td>
			当前佣金最小值：<input type="text" value="${guoguojieCommissionMin}" readonly style="color:red" />
			</td>
			<td>
			请设置返利比率：
					<select id="guoguojieCommissionRate" name="guoguojieCommissionRate">
						<option value="" selected>请选择果果街返利比率</option>
						<option value="0.01">1%</option>
						<option value="0.02">2%</option>
						<option value="0.03">3%</option>
						<option value="0.04">4%</option>
						<option value="0.05">5%</option>
						<option value="0.06">6%</option>
						<option value="0.07">7%</option>
						<option value="0.08">8%</option>
						<option value="0.09">9%</option>
						<option value="0.10">10%</option>
						<option value="0.11">11%</option>
						<option value="0.12">12%</option>
						<option value="0.13">13%</option>
						<option value="0.14">14%</option>
						<option value="0.15">15%</option>
						<option value="0.16">16%</option>
						<option value="0.17">17%</option>
						<option value="0.18">18%</option>
						<option value="0.19">19%</option>
						<option value="0.20">20%</option>
						<option value="0.21">21%</option>
						<option value="0.22">22%</option>
						<option value="0.23">23%</option>
						<option value="0.24">24%</option>
						<option value="0.25">25%</option>
						<option value="0.26">26%</option>
						<option value="0.27">27%</option>
						<option value="0.28">28%</option>
						<option value="0.29">29%</option>
						<option value="0.30">30%</option>
						<option value="0.31">31%</option>
						<option value="0.32">32%</option>
						<option value="0.33">33%</option>
						<option value="0.34">34%</option>
						<option value="0.35">35%</option>
						<option value="0.36">36%</option>
						<option value="0.37">37%</option>
						<option value="0.38">38%</option>
						<option value="0.39">39%</option>
						<option value="0.40">40%</option>
						<option value="0.41">41%</option>
						<option value="0.42">42%</option>
						<option value="0.43">43%</option>
						<option value="0.44">44%</option>
						<option value="0.45">45%</option>
						<option value="0.46">46%</option>
						<option value="0.47">47%</option>
						<option value="0.48">48%</option>
						<option value="0.49">49%</option>
						<option value="0.50">50%</option>
						<option value="0.51">51%</option>
						<option value="0.52">52%</option>
						<option value="0.53">53%</option>
						<option value="0.54">54%</option>
						<option value="0.55">55%</option>
						<option value="0.56">56%</option>
						<option value="0.57">57%</option>
						<option value="0.58">58%</option>
						<option value="0.59">59%</option>
						<option value="0.60">60%</option>
						<option value="0.61">61%</option>
						<option value="0.62">62%</option>
						<option value="0.63">63%</option>
						<option value="0.64">64%</option>
						<option value="0.65">65%</option>
						<option value="0.66">66%</option>
						<option value="0.67">67%</option>
						<option value="0.68">68%</option>
						<option value="0.69">69%</option>
						<option value="0.70">70%</option>
						<option value="0.71">71%</option>
						<option value="0.72">72%</option>
						<option value="0.73">73%</option>
						<option value="0.74">74%</option>
						<option value="0.75">75%</option>
						<option value="0.76">76%</option>
						<option value="0.77">77%</option>
						<option value="0.78">78%</option>
						<option value="0.79">79%</option>
						<option value="0.80">80%</option>
						<option value="0.81">81%</option>
						<option value="0.82">82%</option>
						<option value="0.83">83%</option>
						<option value="0.84">84%</option>
						<option value="0.85">85%</option>
						<option value="0.86">86%</option>
						<option value="0.87">87%</option>
						<option value="0.88">88%</option>
						<option value="0.89">89%</option>
						<option value="0.90">90%</option>
						<option value="0.91">91%</option>
						<option value="0.92">92%</option>
						<option value="0.93">93%</option>
						<option value="0.94">94%</option>
						<option value="0.95">95%</option>
						<option value="0.96">96%</option>
						<option value="0.97">97%</option>
						<option value="0.98">98%</option>
						<option value="0.99">99%</option>
						<option value="1.00">100%</option>
					</select>
			</td>
			<td>
			请设置佣金最小值：<input type="text" id="guoguojieCommissionMin" name="guoguojieCommissionMin" value="${guoguojieCommissionMin}" />
			</td>
			<td>
			<input type="submit" value="确认修改" />
			</td>
		</tr>
	</table>
</form>